Public Types | Static Public Member Functions | List of all members
TestDataMakerClass< std::unique_ptr< T[]> > Struct Template Reference
Inheritance diagram for TestDataMakerClass< std::unique_ptr< T[]> >:
TestDataMakerBase

Public Types

using Container_t = std::unique_ptr< T[]>
 

Static Public Member Functions

static Container_t make ()
 
- Static Public Member Functions inherited from TestDataMakerBase
static constexpr std::size_t sourceSize ()
 

Additional Inherited Members

- Static Public Attributes inherited from TestDataMakerBase
static constexpr std::size_t Dim = 10U
 
static std::array< int, Dim > const sourceValues {{ 0, -1, -2, -3, -4, -5, -6, -7, -8, -9 }}
 

Detailed Description

template<typename T>
struct TestDataMakerClass< std::unique_ptr< T[]> >

Definition at line 69 of file MappedContainer_test.cc.

Member Typedef Documentation

template<typename T >
using TestDataMakerClass< std::unique_ptr< T[]> >::Container_t = std::unique_ptr<T[]>

Definition at line 70 of file MappedContainer_test.cc.

Member Function Documentation

template<typename T >
static Container_t TestDataMakerClass< std::unique_ptr< T[]> >::make ( )
inlinestatic

Definition at line 71 of file MappedContainer_test.cc.

72  {
73  Container_t data { new T[sourceSize()] };
74  std::copy(sourceValues.cbegin(), sourceValues.cend(), data.get());
75  return data;
76  }
static constexpr std::size_t sourceSize()
static std::array< int, Dim > const sourceValues
T copy(T const &v)

The documentation for this struct was generated from the following file: